<%= content_for :header_tags do -%>
<style>
  <% if project && project.enabled_module(:redmine_issue_status_bgcolor) -%>
    /* seems to be necessary on some browsers for the due date borders to be shown */
    table.list { border-collapse: collapse; }
  
    <% IssueStatus.all.each do |item| -%>
    <% @cls_key = "status-" + item.id.to_s %>
    <% @stcl_key = "issue_status_" + item.id.to_s + "_color" %>
    table.list tbody tr.<%= @cls_key %>:nth-child(odd)         { background-color:<%= Setting['plugin_redmine_issue_status_bgcolor'][@stcl_key] %>; }
    table.list tbody tr.<%= @cls_key %>:nth-child(even)        { background-color:<%= rti_lighten_css_color(Setting['plugin_redmine_issue_status_bgcolor'][@stcl_key], 0.05) %>; }
    table.list tbody tr.<%= @cls_key %>:nth-child(odd):hover   { background-color:<%= rti_contrast_css_color(Setting['plugin_redmine_issue_status_bgcolor'][@stcl_key]) %>; }
    table.list tbody tr.<%= @cls_key %>:nth-child(even):hover  { background-color:<%= rti_contrast_css_color(Setting['plugin_redmine_issue_status_bgcolor'][@stcl_key]) %>; }
    <%- end %>
  <% else -%>
    /* plugin <%= :redmine_issue_status_bgcolor %> disabled */
  <%- end %>
</style>
<%- end %>